package yf.mall.service;

import yf.mall.entity.LotteryRecordEntity;
import yf.mall.vo.LotteryRecordVo;
import com.yf.service.BaseService;

import javax.servlet.http.HttpServletResponse;
import java.math.BigDecimal;
import java.util.List;

/**
 * 抽奖记录Service接口
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Thu Aug 20 11:07:03 CST 2020
 */
public interface LotteryRecordService extends BaseService<LotteryRecordEntity> {

    /************自动生成**************/
    List<LotteryRecordVo> findVo(LotteryRecordVo vo);

        LotteryRecordVo getVo(Long id);

     int updateVo(LotteryRecordVo vo);

       int saveVo(LotteryRecordVo vo);

    void downLoad(HttpServletResponse response, List<LotteryRecordVo> list);


    /***********BACK***********/




    /***********API***********/
    BigDecimal totalActIdAndGoodId(Long goodsActId, Long actId, Long userId);


    List<LotteryRecordEntity> findByUserId(Long userId, int page, int limit);
}
